<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"  %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>${aier_title}</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    	
	<meta http-equiv="Content-Type" content="${aier_content_type}" >
	<meta name="keywords" content="${aier_keyworks}" >
	<meta name="description" content="${aier_description}" >
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel='stylesheet' type='text/css' href="${aier_new_css_url}assets/stylesheets/bootstrap/bootstrap.css" >
	<link rel='stylesheet' type='text/css' href="${aier_new_css_url}assets/stylesheets/bootstrap/bootstrap-responsive.css">
	<link rel='stylesheet' type='text/css' href="${aier_new_css_url}assets/stylesheets/jquery_ui/jquery-ui-1.10.0.custom.css" >
    <link rel='stylesheet' type='text/css' href='${aier_new_css_url}assets/stylesheets/light-theme.css' media='all'  >
    <link rel='stylesheet' type='text/css' href='${aier_new_css_url}assets/stylesheets/demo.css' media='all'   >
    <link rel='stylesheet' type='text/css' type='text/css' href="${aier_new_css_url}admin/comwap.css"  media='all' >	
    <style type="text/css">
			.change{		 	
				margin-top:15px;
				margin-right:30px;
				float:right;}
			.change2{
			margin-right:10px;
				float:right;}
			.test{	
				float:left;
				 margin: 15px auto 15px 35px;
			}
			 ul,li {
						margin: 0;
						padding: 0;
						list-style: none;
			}
			.imglist{
				float:left;
				width:500px;
				margin: 15px auto 15px 10px;
			}
			.info{
				float:left;
				  margin: 15px auto 15px 35px;
				}
			.about{
					float:left;
				width:500px;
				 margin: 15px auto 15px 35px;
					}
			.teacherlist{
						float:left;
						width:500px;
						margin: 15px auto 15px 30px;
						}
			.teacherfirst{
				margin:auto auto 10px auto;
				}
				.teacher{
					margin:10px auto 10px auto;
					}
				
			.imglist li img{	
						float:left;
						width:100px;
						height:120px;
						margin-left:2px;
						margin-bottom:2px;
			}
			.tx{
				float:left;
						width:58px;
						height:58px;
						margin-left:2px;
						margin-bottom:2px;
				}		
			.tablemain {
				color:#333333;
				border-collapse: collapse;
				border-width: 2px;
				border-style: solid;
				border : 2px #D3D3D3  solid 
								}
							
			.tablemain td{
				border-width: 2px;
				border-style: solid;
				border-color:#D3D3D3;
				cellSpacing:0; cellPadding:0;
				border-bottom: 2px #D3D3D3 solid;
				border-top:none;
				border-left:none;
				border-right:none;
			}					
		</style>
	</head>
  
  <body >

	<!-- 顶栏 -->
	<s:action name="userhomecomm_homeHead" namespace="/user" executeResult="true"></s:action>
	<!-- 顶栏结束 -->

	    <br>
		<div class="container-fluid" style="margin-top: 90px;">
		<!-- wrap  -->
			<div class="row-fluid" >
				<div class ='span1'style="margin-left: 150px;">
					<!--菜单栏  -->
					<s:action name="menus_classMenus" namespace="/nxadmin" executeResult="true" ></s:action>
					<!--菜单栏结束  -->
				</div>
				
				<!-- 主区域 (右  -->
				<div class="span9" style="margin-left:70px;" >				
							<div class="right-main-top" style="font-size: 16px;">
								<div><a>&nbsp;&nbsp;&nbsp;</a><strong style="margin-top: 10px;margin-top: 20px;">学校信息</strong></div>
							</div>

							<table width="950px;" class="tablemain">
								  <tbody>
								        <tr>
								       	  <td>
								           	<div class="test">
								  				 学校头像：
								             </div> 
								              <div class="imglist" >
								               	  <ul>
								                   	  <li>
								                		<img id="schoollogo" src=""   style='width:25%;height:25%;' />
								                      </li>
								               	  </ul>
								              </div> 
								            </td>
								        </tr>
								        
								        <tr>
								       	  	<td id="scname">
								            	<div class="test">
								  				 学校名称：
												</div>
												<div id="am"  >
													<div id="aa" >
									                	<div class="info" id="schoolname"></div>
									               		 <span class="change">
									                 	</span>
								                	 </div>
								                 </div>
									        </td>
								        </tr>
						                <tr>
								       	  <td>
								           	<div class="test">
								  				  简介：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								             </div> 
								             <div id="mab">
									             <div class="about" id="desinfo">
									             </div> 
								              </div>
								              <div id="mac">
								              </div>								          
								           </td>
								        </tr>
								        <tr>
								       	  <td>
								           	<div class="test">
								  				 联系方式：
								             </div> 
									              <div class="teacherlist"  >
									                                <div class="teacherfirst">
									                                   [地址]： <span id="address">
									                                         </span>
									                                </div> 
									                                
									            	    			<div class="teacher">
									                                    [电话]： <span id="phone">
									                                          </span>
									                                </div> 
									
									                                <div class="teacher">
									                                     [邮编]： <span id="postcode">
									                                          </span>
									                                </div> 
									
									                                <div class="teacher">
									                                    [传真]： <span id="fax">
									                                      	  </span>
									                                </div>
									                                										
									                                <div class="teacher">
									                                    [电子邮件]： <span id="email">
									                                      	  </span>
									                                </div> 
									                                										
									                                <div class="teacher">
									                                    [网站地址]： <span id="url">
									                                      	    </span>
									                                </div>
									                  </div> 
									                 
								            </td>
								        </tr>
										<tr>
								       	  <td>
								           	<div class="test">
								  				 园长信息：
								             </div> 
								             <div id="stlistinfo">
								              				<div class="teacherlist"  >
									                                <div class="teacherfirst" >
									                                   [姓名]： <span id="teachername" >
									                                         </span>
									                                </div> 
									                                
									            	    			<div class="teacher">
									                                    [电话/手机/座机]： <span id="teachercal">
									                                          </span>
									                                </div> 
									
									                                <div class="teacher">
									                                     [邮件]： <span id="teacheremail">
									                                          </span>
									                                </div> 
									
									                                <div class="teacher">
									                                     [QQ]： <span id="teacherqq">
									                                      	  </span>
									                                </div>
								             					 </div> 
								             </div>
								              		
								            </td>
										 </tr>                  
								  </tbody>  
							</table>	
		</div>	
	</div>
</div>
<script src="${aier_new_js_url}assets/jquery/jquery-1.9.0.min.js" type="text/javascript" ></script>
<script src="${aier_new_js_url}assets/bootstrap/bootstrap.min.js" type="text/javascript" ></script>
<script src="${aier_new_js_url}assets/jquery_ui/jquery-ui.min.js" type="text/javascript" > </script> 
<script src="${aier_new_js_url}assets/jquery_ui/jquery-ui-1.10.0.custom.min.js" type="text/javascript"></script>

<script type="text/javascript">
		var sid =${sid};// 学校ID
		//学校主体信息
		function loadSchoolinfo(){	
			$.ajax({ 
		           type: "post", 
	               url:  "${aier_url}${aier_urijs}school_serachAvatar.shtml", 
	               data:{"sid":sid},
	               dataType: "json", 
	               timeout:15000,
	               success: function (data) { 
	            	   if(data.s==1){
	            		   $('#schoollogo').attr("src", "${schoollogo_get_url}small/" + data.school.slogo + "");
	            		   $('#schoolname').append(data.school.name);//data.school.name
	            		   $('#desinfo').append(data.school.desinfo);//
	            		   
	            		   $('#address').append(data.schoolInfoDetail.address);//
	            		   $('#phone').append(data.schoolInfoDetail.phone);//
	            		   $('#postcode').append(data.schoolInfoDetail.postcode);//
	            		   $('#fax').append(data.schoolInfoDetail.fax);//
	            		   $('#email').append(data.schoolInfoDetail.email);//
	            		   $('#url').append(data.schoolInfoDetail.url);//
	            		   
	            		   $('#teachername').append(data.user.realname);//
	            		   $('#teachercal').append(data.user.phone);//
	            		   var sd=data.user.email;
	            		   var  arr=sd.split(",");
	            		   $('#teacheremail').append(arr[0]);//
	            		   $('#teacherqq').append(arr[1]);//
	            	   }
	               }, 
	               error: function (XMLHttpRequest, textStatus, errorThrown) { 
	                       alert(errorThrown); 
	               } 
	       });
		}

		
		loadSchoolinfo();
</script>
</body>
</html>